<template>
  <div :class="['bookdo-author', 'bookdo-author-'+global.showType]">
    <div class="bookdoa-info">
      <img src="../../../assets/images/author_head.png" alt="" class="bookdoa-avatar">
      <div class="bookdoa-type">
        <span class="bookdoa-type-span">知名作家</span>
      </div>
      <p class="bookdoa-name">
        <span class="bookdoa-go" @click="util.searchKeyExcute($store,authorName,$route)">{{authorName}}</span>
      </p>
    </div>
    <div class="bookdoa-readme">
      <p class="bookdoar-title">作者有话说</p>
      <p class="bookdoar-cont">亲亲们，你们的支持是我最大的动力！求点击、求推荐、求书评哦！</p>
    </div>
  </div>
</template>

<script>
export default {
  props:{
    authorName:String
  }
}
</script>

<style lang='scss' scoped>

.bookdo-author-pc{
  width: 100%;
}
.bookdo-author-mobile{
  
}
.bookdo-author {
  border-radius: 8px;
  padding: 20px;
  background-color: #fff;
  margin-bottom: 20px;
  .bookdoa-info {
    text-align: center;
    // .bookdoa-avatar {
      
    // }
    .bookdoa-type {
      text-align: center;
      .bookdoa-type-span{
        position: relative;
        top: -8px;
        display: inline-block;
        width: 60px;
        line-height: 22px;
        font-size: 12px;
        color: #fff;
        border-radius: 3px;
        background-color: $base-color;
      }
    }
    .bookdoa-name {
      margin-top: 0;
      border: 1px dotted #e0e0e0;
      border-width: 0 0 1px 0;
      height: 30px;
      font-weight: bold;
      .bookdoa-go{
        cursor: pointer;
      }
      .bookdoa-go:hover{
        color: $base-color;
      }
    }
  }
  .bookdoa-readme {
    color: #333;
    // .bookdoar-title {
      
    // }
    .bookdoar-cont {
      height: 40px;
      overflow: hidden;
    }
  }
}
</style>